<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html>

    <head>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <title>LeisBlog | Website_Config</title>

        <link href="/static/css/bootstrap.min.css" rel="stylesheet">
        <link href="/static/font-awesome/css/font-awesome.css" rel="stylesheet">
        <link href="/static/css/animate.css" rel="stylesheet">
        <link href="/static/css/style.css" rel="stylesheet">
        <link href="/static/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
        <link href="/static/js/plugins/uploadify/uploadify.css" rel="stylesheet">
        <script data-main="/static/js/admin-frame.js" src="/static/js/require.min.js"></script>
    </head>

    <body class="white-bg">
        <i id="scriptTag">/static/js/admin/admin-site-config.js</i>
        <div id="spinner-wrap"></div>
        <div class="panel panel-primary">
            <div class="panel-heading">
                站点配置
            </div>
            <div class="panel-body">
                <form class="form-horizontal" id="website-config-form">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">头像</label>
                        <div class="col-sm-10">
                            <img src="<?php echo $site_icon; ?>" id="site_icon_show" style="height:48px;width:48px;display:inline-block;"/>
                            <input type="file" class="form-control" name="file_upload" id="file_upload" style="display:none;">
                            <input type="hidden" class="form-control" name="site_icon" id="site_icon" value="<?php echo $site_icon; ?>">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">作者</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="site_author" value="<?php echo $site_author; ?>">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">简介</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="site_desc" value="<?php echo $site_desc; ?>"> 
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>

                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-2">
                            <button class="btn btn-primary" type="button">保存</button>
                        </div>
                    </div>
                </form>
            </div>

        </div>

    </body>

</html>



